package week2;

public class StringBuilder {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
        
		StringBuilder stringBuilder = new StringBuilder();
		while (true) {
			int n = sc.nextInt();
			for (int i = 0; i < n; i++) {//alt+/
				stringBuilder.append(i);
			}
			System.out.println(stringBuilder.toString());
		}
		
	}
}
